<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>学员跟踪</title>
    <%@include file="../../../static/common/common.jsp" %>
    <script src="/static/js/studentTracking.js"></script>
</head>
<!--非常关键-->
<jsp:include page="/static/style/loader.jsp"></jsp:include>
<style type="text/css">
    #studentTracking_dialog tr td input{
        width:130px;
    }
    .textTd{
        text-align:right;
    }
</style>
<body>
<table id="studentTracking_datagrid"></table>
<div id="studentTracking_btns">
    <%--<a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>--%>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="view">查看</a>
    <a id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
       data-cmd="changeState">审核</a>

    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>

    <input class="easyui-textbox" name="keyword" prompt="请输入客户名或咨询人员">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query"></a>
</div>
<div id="save_btns">
    <shiro:hasPermission name="studentTracking:changeState">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    </shiro:hasPermission>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>

<div id="studentTracking_dialog">
    <form id="studentTracking_form" method="post">
        <input id="stuId" type="hidden" name="id">
        <input type="hidden" name="client.id">
        <input id="schoolId" type="hidden" name="school.id">
        <input type="hidden" name="schoolLinkman.id">
        <input type="hidden" name="classRoom.id">
        <input type="hidden" name="dictionaryItem.id">
        <table align="center" style="margin-top: 15px" cellspacing="4">
            <tr>
                <td class="textTd">日期:</td>
                <td>
                    <input class="easyui-datetimebox" name="date"
                    >
                </td>

                <td class="textTd">咨询方式:</td>
                <td><input class="easyui-combobox" name="client.source"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=source',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>

                <td class="textTd">咨询人员:</td>
                <td><input class="easyui-combobox" name="consultant">
                </td>
            </tr>

            <tr>
                <td class="textTd">潜在学员:</td>
                <td><input class="easyui-combobox" name="client.name"
                           data-options="url:'/client/selectAll.do',valueField:'name',textField:'name',panelHeight:'auto'">
                </td>

                <td class="textTd">所属学校:</td>
                <td><input id="schoolName" class="easyui-combobox" name="client.schoolName"
                           data-options="url:'/school/selectAll.do',valueField:'school',textField:'school',panelHeight:'auto'">
                </td>

                <td class="textTd">学校联系人:</td>
                <td><input id="schoolLinkman" class="easyui-combobox" name="linkman">
                </td>
            </tr>
            <tr>
                <td class="textTd">QQ:</td>
                <td><input class="easyui-textbox" name="client.qq"
                           data-options="url:'/client/selectAll.do',valueField:'id',textField:'qq',panelHeight:'auto'"></td>

                <td class="textTd">联系电话:</td>
                <td><input class="easyui-textbox" name="client.tel"></td>

                <td class="textTd">咨询时长(分钟):</td>
                <td><input class="easyui-textbox" name="consultingLength"></td>
            </tr>

            <tr>
                <td class="textTd">约访日期:</td>
                <td>
                    <input class="easyui-datetimebox" name="client.postionTime">
                </td>

                <td class="textTd">审核状态:</td>
                <td><input class="easyui-combobox" name="auditStatus"
                           data-options="data:[
                           {name:'已审核',value:'1'},{name:'未审核',value:'0'}],valueField:'value',textField:'name',panelHeight:'auto'">
                </td>

                <td class="textTd">意向程度:</td>
                <td><input class="easyui-combobox" name="client.intention.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionDegree',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>

            </tr>

            <tr>
                <td class="textTd">下次访问时间:</td>
                <td>
                    <input class="easyui-datetimebox" name="client.nextTime">
                </td>

                <td class="textTd">跟进目的:</td>
                <td><input class="easyui-combobox" name="followPurpose"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=tracePurpose',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>

                <td class="textTd">意向班级:</td>
                <td><input class="easyui-combobox" name="client.intentionClass.id"
                           data-options="url:'/classRoom/selectAll.do',valueField:'id',textField:'className',panelHeight:'auto'">
                </td>
            </tr>

            <tr>
                <td class="textTd">关注问题:</td>
                <td class="textTd" colspan="6"><input class="easyui-textbox" name="client.question" data-options="multiline:true"
                                                      style="width:600px;height:50px">
                </td>
            </tr>

            <tr>
                <td class="textTd">交流内容:</td>
                <td class="textTd" colspan="6">
                    <input class="easyui-textbox" name="content" data-options="multiline:true"
                           style="width:600px;height:80px">
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>
